<div class="span6">

    <div class="box box-color box-bordered">
        <div class="box-title">
            <h3><i class="icon-bullhorn"></i>Alertas</h3>
        </div>
        <div class="box-content nopadding scrollable" data-height="350" data-visible="true" data-start="top">
            <ul class="messages">
                <?php
                $i = 0;
                foreach ($alerts as $value) {
                    $i++;
                    ?>
                    <li class="<?php echo ($i & 1) ? 'left' : 'right'; ?>">
                        <div class="image">
                            <img src="img/demo/user-1.jpg" alt="">
                        </div>
                        <div class="message">
                            <span class="caret"></span>
                            <span class="name"><?php echo $value['title']; ?></span>
                            <p><?php echo $value['description']; ?></p>
                            <span class="time timeago" datetime=" <?php echo $value['creation_date']; ?>">
                            </span>
                        </div>
                    </li>

<?php } ?>
            </ul>

        </div>
        <div class="post">
            <center><h4><a href="<?php echo url_for('home/alertsDetails'); ?>">Más Alertas</a></h4></center>
        </div>
    </div>
</div>
<?php
/*
  <div class="alerts">
  <h3 class="head_title">Alertas</h3>
  <div class="post_content">

  <?php
  foreach ($alerts as $value) {
  ?>
  <div class="post">
  <h4><?php echo $value['title']; ?></h4>
  <p><?php echo $value['description']; ?></p>
  <span class="hour"><?php echo $value['creation_date']; ?></span>
  </div>
  <?php } ?>


  <div class="post">
  <center><h4><a href="<?php echo url_for('home/alertsDetails'); ?>">Más Alertas</a></h4></center>
  </div>

  </div>
  <!-- /post_content -->
  </div>
 * 
 */?>